/*
 * @Description:
 * @Author:  huangshuai
 * @Date: 2023-10-16 16:29:27
 * @LastEditTime: 2023-11-29 10:10:38
 * @LastEditors: huangshuai
 */
import { createApp } from "vue";
import "./style/reset.css";
import "animate.css";
import App from "./App.vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import router from "./router";
import pinia from "./stores";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import zhCn from "element-plus/es/locale/lang/zh-cn";
import "@/assets/iconfont/iconfont.css";
import "@/assets/iconfont/iconfont.js";

const app = createApp(App);
//全局使用icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
//国际化
app.use(ElementPlus, {
  locale: zhCn,
});
app.use(pinia).use(ElementPlus).use(router).mount("#app");
